package com.project.stanticProxy;

public class Shop implements IEpetService{
    private IEpetService epet;
    public Shop(IEpetService epet) {
        this.epet = epet;
    }

    @Override
    public void consumption() {
        System.out.println("放洗澡水");
        epet.consumption();
        System.out.println(this.getName()+",请付费"+epet.getName());
    }

    @Override
    public String getName() {
        return "洗澡服务";
    }
}
